package IO;

public class ThrowDemo {
    public static void main(String[] args) {
        Students stu = new Students();
        try{
            stu.setAge(220);
            System.out.println("该生的年纪为"+stu.getAge());
        }catch (Exception e){
            System.out.println("年纪不合实际");
        }
    }
}
